<template>
  <div class="my">
    <div class="header">
      <div class="top">
        <div class="left">
          <div class="con">
            <div class="avatarContainer">
              <img class="avatar" src="@/assets/logo.png" alt="" />
            </div>
            <div class="conBox">
              <div class="nickName">
                enen
              </div>
              <div class="rengZheng">
                申请认证
              </div>
            </div>
          </div>
        </div>
        <div class="right">
          <div class="icon-left">
            <i class="iconfont iconRead">&#xe60b;</i>
          </div>
          <div class="todayRead">
            <div>
              <div>
                今日阅读 <br />
                5分钟
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="bottom">
        <div>
          <span>8</span>
          <div class="bottomNote">动态</div>
        </div>
        <div>
          <span>66</span>
          <div class="bottomNote">关注</div>
        </div>
        <div>
          <span>88</span>
          <div class="bottomNote">粉丝</div>
        </div>
      </div>
    </div>
    <div class="center">
      <div class="singleBox">
        <i class="iconfont icon1">&#xe60f;</i>
        <div class="iconNote">动态</div>
      </div>
      <div class="singleBox">
        <i class="iconfont icon1 yellow">&#xe608; </i>
        <div class="iconNote">历史</div>
      </div>
      <div class="singleBox">
        <i class="iconfont icon1 blue">&#xe604; </i>
        <div class="iconNote">作品</div>
      </div>
    </div>
    <div class="contanier">
      <myCell title="消息通知"></myCell>
      <myCell
        title="实名认证
"
      ></myCell>
      <myCell
        title="用户反馈
"
      ></myCell>
      <myCell
        title="小智同学
"
      ></myCell>
      <myCell
        title="系统设置
"
      ></myCell>
    </div>
  </div>
</template>

<script>
import myCell from './myCell'
export default {
  name: 'my',
  components: {
    myCell
  },
  data () {
    return {}
  }
}
</script>

<style lang="less" scoped>
.my {
  background-color: #cccccc;
  height: 100%;
  .header {
    height: 200px;
    background-color: #3296fa;
    opacity: 0.7;
    display: flex;
    flex-direction: column;
    .top {
      position: relative;
      flex: 3;
      display: flex;
      .left {
        flex: 1;
        position: relative;
        .con {
          display: flex;
          position: absolute;
          left: 0;
          top: 50%;
          transform: translateY(-50%);
          .avatarContainer {
            width: 66px;
            height: 66px;
            margin: 0 15px;
            .avatar {
              display: inline-block;
              width: 100%;
              height: 100%;
              border-radius: 50%;
              background-size: cover;
            }
          }
          .conBox {
            .nickName {
              font-family: MicrosoftYaHei;
              font-size: 22px;
              font-weight: normal;
              font-stretch: normal;
              letter-spacing: 0px;
              color: #ffffff;
            }
            .rengZheng {
              display: inline-block;
              background-color: #ffffff;
              padding: 4px 8px;
              color: #429efa;
              font-size: 16px;
              margin-top: 10px;
              border-radius: 10px;
            }
          }
        }
      }
      .right {
        display: flex;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 94px;
        height: 40px;
        background-color: #3981c9;
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
        color: #ffffff;
        .icon-left {
          text-align: center;
          flex: 3;
          line-height: 40px;
          .iconRead {
            display: inline-block;
            font-size: 20px;
          }
        }
        .todayRead {
          flex: 4;
          font-family: MicrosoftYaHei;
          font-size: 11px;
          font-weight: normal;
          font-stretch: normal;
          letter-spacing: 0px;
          color: #ffffff;
          height: 100%;
          div {
            display: inline-block;
            line-height: 19px;
          }
        }
      }
    }
    .bottom {
      flex: 1.5;
      text-align: center;
      display: flex;
      justify-content: space-between;
      div {
        height: 100%;
        line-height: 100%;
        flex: 1;
        font-family: ArialMT;
        font-size: 18px;
        font-weight: normal;
        font-stretch: normal;
        letter-spacing: 0px;
        color: #ffffff;
        height: 100%;
        line-height: 100%;
        .bottomNote {
          margin-top: 8px;
        }
      }
    }
  }
  .center {
    height: 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    background-color: #ffffff;
    border-top: 1px solid #cccccc;
    margin-bottom: 2px;
    .singleBox {
      flex: 1;
      .icon1 {
        display: block;
        color: #f19091;
        font-size: 20px;
      }
      .yellow {
        color: #ffb554;
      }
      .blue {
        color: #439efa;
      }
      .iconNote {
        font-family: MicrosoftYaHei;
        font-size: 16px;
        font-weight: normal;
        font-stretch: normal;
        letter-spacing: 0px;
        color: #333333;
      }
    }
  }
}
</style>
